package pers.vic.practice.module.system.model;


import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonAppend;
import pers.vic.boot.base.handler.json.annotation.AppendJsonField;
import pers.vic.boot.base.model.BaseEntity;
import pers.vic.practice.base.constant.AppendJsonType;


/**
 * 字典表 实体类
 *
 * @author Vic.xu
 */
public class SysDict extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 类型code
     */
    @AppendJsonField(key = "typeName", appendType = AppendJsonType.DICT_TYPE_CODE)
    private String typeCode;

    /**
     * 父类型code
     */
    @AppendJsonField(key = "parentTypeName", appendType = AppendJsonType.DICT_TYPE_CODE)
    private String parentTypeCode;

    /**
     * 选项值
     */
    private String value;

    /**
     * 选项展示
     */
    private String text;

    /**
     * 是否可用
     */
    private Integer enabled;

    /**
     * pid
     */
    private Integer pid;

    /**
     * pid -> text
     */
    private String parentText;

    /**
     * 备注
     */
    private String remark;


    /***************** set|get  start **************************************/
    /**
     * set：类型code
     */
    public SysDict setTypeCode(String typeCode) {
        this.typeCode = typeCode;
        return this;
    }

    /**
     * get：类型code
     */
    public String getTypeCode() {
        return typeCode;
    }

    /**
     * set：选项值
     */
    public SysDict setValue(String value) {
        this.value = value;
        return this;
    }

    /**
     * get：选项值
     */
    public String getValue() {
        return value;
    }

    /**
     * set：选项展示
     */
    public SysDict setText(String text) {
        this.text = text;
        return this;
    }

    /**
     * get：选项展示
     */
    public String getText() {
        return text;
    }

    /**
     * set：是否可用
     */
    public SysDict setEnabled(Integer enabled) {
        this.enabled = enabled;
        return this;
    }

    /**
     * get：是否可用
     */
    public Integer getEnabled() {
        return enabled;
    }

    /**
     * set：pid
     */
    public SysDict setPid(Integer pid) {
        this.pid = pid;
        return this;
    }

    /**
     * get：pid
     */
    public Integer getPid() {
        return pid;
    }

    /**
     * set：备注
     */
    public SysDict setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    /**
     * get：备注
     */
    public String getRemark() {
        return remark;
    }

    public String getParentTypeCode() {
        return parentTypeCode;
    }

    public void setParentTypeCode(String parentTypeCode) {
        this.parentTypeCode = parentTypeCode;
    }

    public String getParentText() {
        return parentText;
    }

    public void setParentText(String parentText) {
        this.parentText = parentText;
    }

    /***************** set|get  end **************************************/
}
